//
//  ViewController.swift
//  XResources
//
//  Created by anru on 08/12/2024.
//  Copyright (c) 2024 anru. All rights reserved.
//

import UIKit
import XResources
import Localize_Swift

class ViewController: UIViewController {
    lazy var image1: UIImageView = {
        let v = UIImageView(frame: CGRect(x: 20, y: 20, width: 100, height: 100))
//        v.image = R.image.arrowBackOutline()
//        sf symbol
        v.image = UIImage(systemName: "square.and.arrow.up")
        return v
    }()
    lazy var lable: UILabel = {
        let l = UILabel()
        l.frame = CGRect(x: 20, y: 20, width: 200, height: 100)
        l.text = R.string.localizable.homeTabBarLoginTitle.key.localized()
        return l
    }()
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        view.addSubview(image1)
        view.addSubview(lable)
        view.backgroundColor = .red
        print(R.bundle)
        
        let languages = Localize.availableLanguages(true)
        print(languages)
        print(R.bundle.localizations)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

